﻿namespace Sorting
{
    using System;
    using System.Collections.Generic;


    class Sorting
    {
        static void Main()
        {
            List<int> numberContainer = new List<int>();

            Console.WriteLine("Please input the numbers to sort");

            while (true)
            {
                string inputLine = Console.ReadLine();

                if (inputLine == string.Empty)
                {
                    break;
                }

                int parsedNum;

                bool isParsed = int.TryParse(inputLine, out parsedNum);

                if (isParsed)
                {
                    numberContainer.Add(parsedNum);
                }
            }

            numberContainer.Sort();

            Console.WriteLine(string.Join(" ", numberContainer));
        }
    }
}